//
//  UIImage+Ext.h
//  HIYUNTON
//
//  Created by YULING MINA on 14-11-15.
//  Copyright (c) 2014年 hiyunton.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Ext)

- (UIImage *)scaletoSize:(CGSize)size;
/**
 *  根据宽度缩放图片
 *
 *  @param defineWidth 宽度
 *
 *  @return UIImage
 */
- (UIImage *) imageCompressForWidth:(CGFloat)defineWidth;

/**
 *  获取alpha透明度的图片
 *
 *  @param alpha 透明度 0-1
 *  @param image
 *
 *  @return image
 */
+(UIImage *)imageByApplyingAlpha:(CGFloat)alpha  image:(UIImage*)image;


+(UIImage*) thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time;


+ (UIImage *)resizableImage:(NSString *)name;

@end
